var setImageClickListener = function(){
	if(typeof WebViewHelper == 'undefined'){
			var WebViewHelper = {
				onClickImage: function(str, index){
					console.log("需要这是对应的属性, str is " + str + ", and index is " + index);
				}
			};
	}
	console.log("调用函数");
	var images = document.getElementsByTagName("img");
	var resultImages = [];
	Array.prototype.forEach.call(images, image => {
		if(image.clientWidth >= 50 && image.clientHeight >= 50){
			resultImages.push(image);
			if(typeof image.onclick != "function"){
				image.onclick = function(){
					var imageUrl = [];
					resultImages.forEach(_image =>{
						imageUrl.push(_image.src);
					});
					var index = resultImages.indexOf(this);
					console.log("index is " + index);
					WebViewHelper.onClickImage(JSON.stringify(imageUrl), index);
				}
			}
		}
	});
};
setImageClickListener();